﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace BYS.XiAnComDept.BussLogic
{
    public static class ObjectExtension
    {
        public static T IfNull<T>(this T obj, T value)
        {
            if (obj == null)
            {
                return value;
            }
            else
            {
                return obj;
            }
        }
    }
}
